<template>
  <!-- 统计和清空 -->
  <footer class="footer">
    <!-- 统计 -->
    <span class="todo-count">合 计:<strong> {{this.list.length}} </strong></span>
    <!-- 清空 -->
    <button class="clear-completed" @click="clearTask">
      清空任务
    </button>
  </footer>
</template>
<script>
export default {
  data(){
    return {
      totalCount: 0
    }
  },
  props: {
    list: Array
  },
  methods:{
    clearTask(){
      this.$emit("clear")
    }

  }

}
</script>
<style scoped>

</style>